package com.tongcao.cn.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.tongcao.cn.domain.dataobject.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author:tongcao
 * @since:2019/8/8 15:28
 * Description:
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {


    @Select("select * from user where valid = 1")
    List<User> getUserList();
}